package com.zho.util.exception;

public class FunctionalException extends BaseException {
    private String msgKey = null;

    private String[] values = null;

    public FunctionalException() {
        super();
    }

    public FunctionalException(String description) {
        super(description);
    }

    public FunctionalException(String location, String description) {
        super(location, description);
    }

    public FunctionalException(String location, String description, String msgKey) {
        super(location, description);
        this.msgKey = msgKey;
    }

    public FunctionalException(String location, String description, String msgKey, String[] values) {
        this(location, description, msgKey);
        this.values = values;
    }

    public FunctionalException(String location, Throwable throwable) {
        super(location, throwable);
    }

    public FunctionalException(String location, Throwable throwable, String msgKey) {
        this(location, throwable);
        this.msgKey = msgKey;
    }

    public FunctionalException(String location, Throwable throwable, String msgKey, String[] values) {
        this(location, throwable, msgKey);
        this.values = values;
    }

    public String getMsgKey() {
        return msgKey;
    }

    public String[] getValues() {
        return values;
    }

}
